package com.cltech.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.validation.constraints.Size;

/**
 * Created by Administrator on 2019/4/8.
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysDicDto {
    private String id;
    @Size(max = 20, message = "角色编码最大允许输入20个字符")
    @Column(length = 20, unique = true)
    private String code;
    @Size(max = 20, message = "角色编码最大允许输入20个字符")
    @Column(length = 20, unique = true)
    private String name;
}
